home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13317 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  934 b 

  1. Path: news.cc.sunysb.edu!usenet
  2. From: gene@calph.physics.sunysb.edu (Eugene Tyurin)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help:what is wrong this code?
  5. Date: 05 Apr 1996 20:42:22 -0500
  6. Organization: Institute for Theoretical Physics, Stony Brook University
  7. Sender: gene@calph.physics.sunysb.edu
  8. Message-ID: <ht4tqyku0x.fsf@calph.physics.sunysb.edu>
  9. References: <4k3p3q$n76@brahms.udel.edu>
  10. NNTP-Posting-Host: calph.physics.sunysb.edu
  11. In-reply-to: yuehong@brahms.udel.edu's message of 5 Apr 1996 13:34:34 -0500
  12. X-Newsreader: Gnus v5.0.15
  13.  
  14. >>>>> "Yue-hong" == Yue-hong Zheng <yuehong@brahms.udel.edu> writes:
  15.  
  16.     Yue-hong> Why it give me 0.0000?
  17.  
  18.     Yue-hong> #include <stdio.h> 
  19.     Yue-hong> main () { 
  20.     Yue-hong> double a=9.008;
  21.     Yue-hong> printf("%f\n",sqrt(a)); 
  22.     Yue-hong> return 0; }
  23.  
  24. Because you don't have #include <math.h>
  25.  
  26. -- 
  27. Eugene Tyurin - PhD student at ITP, Stony Brook U.
  28. http://www.physics.sunysb.edu/~gene/
  29.